package com.ymttest.database.sqlwapper;

import java.util.List;








import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtExpressSubscribe;
import com.ymttest.utils.EnvSetup;

public class YmtExpressSubscribeWapper {
	
	SqlManager manager;
	
	 public YmtExpressSubscribeWapper(){
		manager = new SqlManager("ymt" + EnvSetup.getEnv());
	}
	
	
	public YmtExpressSubscribe selectByBillcode(String Billcode)throws InterruptedException{
		List<YmtExpressSubscribe> sub=  manager.getSelectResults(
				"com.ymttest.database.mapping.YmtExpressSubscribeMapper.selectByBillcode", Billcode);
		
		manager.commit();
		return sub.get(0);
		
	}

	public static void main(String[] args)  {
		// TODO Auto-generated method stub
		try {
		 
		YmtExpressSubscribeWapper test = new YmtExpressSubscribeWapper();
		
			System.out.println(test.selectByBillcode("ceshiyundan").getExpresscode().toString());
			
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
